home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
powerb5.zip
/
ROMINFO.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-06-01
|
1KB
|
44 lines
DEFINT A-Z
CLS
DEF SEG = &HF000
SystemID = PEEK(&HFFFE)
ROMDate$ = ""
Copyright$ = ""
FOR I = 0 TO 7
C$ = CHR$(PEEK(&HFFF5 + I))
IF ASC(C$) < 32 THEN C$ = "?"
ROMDate$ = ROMDate$ + C$
NEXT I
FOR I = 0 TO 100 STEP 2
C$ = CHR$(PEEK(&H0 + I))
IF ASC(C$) < 32 THEN C$ = "?"
Copyright$ = Copyright$ + C$
NEXT I
DEF SEG
PRINT "ROM date: "; ROMDate$
PRINT "Copyright notice: "; Copyright$
PRINT "System ID number: "; HEX$(SystemID)
PRINT "Type of system: ";
SELECT CASE SystemID
CASE &HFF
PRINT "IBM PC or PC clone"
CASE &HFE
PRINT "IBM XT, Portable PC or XT, or XT clone"
CASE &HFD
PRINT "PC Junior"
CASE &HFC
PRINT "AT, PS/2 Model 50/60, or AT/386 clone"
CASE &HFB
PRINT "IBM XT or XT clone"
CASE &HFA
PRINT "IBM PS/2 Model 25 or Model 30"
CASE &HF9
PRINT "IBM Convertible"
CASE &HF8
PRINT "IBM PS/2 Model 70 or 80"
CASE ELSE
PRINT "unlisted PC model"
END SELECT
SYSTEM